<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Forum
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Delete.php 7481 2010-09-27 08:41:01Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Forum
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Forum_Form_Topic_Delete extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Delete Topic' )->setDescription ( 'Are you sure you want to delete this topic?' );
		
		// Element: execute
		$this->addElement ( 'Button', 'execute', array ('label' => 'Delete Topic', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ), 'order' => 20 ) );
		
		// Element: cancel
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'prependText' => ' or ', 'href' => '', 'onClick' => 'parent.Smoothbox.close();', 'decorators' => array ('ViewHelper' ), 'order' => 21 ) );
		
		$this->addDisplayGroup ( array ('execute', 'cancel' ), 'buttons', array ()

		 );
	}
}